package uva.skiena;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;


public class FerryLoad {


	public static void solve(int L, ArrayList<Integer> cars) {
		
		int n = cars.size();
		int[][] p = new int[n][L];
		int[][] s = new int[n][L];
		int offset = 0;
		
		
		
		
		
		for(int i = 0; i < n; i++) {
			
			for(int j = offset; j < L; j++) {
				
				
				
			}
			
		}
		
		
		
	}
	
	public static void main(String args[]) throws IOException {
		
		BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
		
		int N = Integer.parseInt(stdin.readLine());
		
		for(int n = 0; n < N; n++) {
			
			stdin.readLine(); //blank

			int L = Integer.parseInt(stdin.readLine()) * 100; //convert to cm
			
			ArrayList<Integer> cars = new ArrayList<Integer>();
			
			int c;
			while((c = Integer.parseInt(stdin.readLine())) != 0) {
				cars.add(c);
			}
			
			solve(L, cars);
			
		}
	}

}
